todo

您所在的位置:网站首页 i write app todo

todo

#todo| 来源: 网络整理| 查看: 265

TODO App

Requirement Install and prepare yarn yarn start Create a powerful Todo app with React and Typescript. Read react-typescript-cheatsheet

Use Context and useReducer() for sharing state.

Todo list with CRUD functions.

Filter by status: All/Completed/Active

Counter for each status. All: 3 active items / 10 items; Completed: 7 completed items / 10 items, Active: 3 active items / 10 items.

Style by yourself, do not use external UI lib like Material-UI, AntDesign...

Use CSS Module Can follow a design in the internet Have to follow the principle in some example UI design theme. (Ex: https://element.eleme.io/#/en-US/theme/preview)

Add timing for each Items. Notify when it nearly the deadline (before deadline 1h)

Should have great UI

Integrate with BE (Can reuse Placeholder or create your own BE by using mockapi)

Recommend Library

Axios (Create axios instance) Have to pass eslint before commit. Can use ESlint extension in VScode to check NCC React basic checklist

https://nccasia.github.io/ncc-react-basic/

How to Write Cleaner React Code

https://www.freecodecamp.org/news/how-to-write-cleaner-react-code/

Working Process

View details

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode. See the section about running tests for more information.

npm run build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3